Optimal. Leaf size=268 \[ \frac {11 i a^{7/2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{64 \sqrt {2} d}+\frac {11 i a^4 \cos (c+d x)}{96 d \sqrt {a+i a \tan (c+d x)}}-\frac {11 i a^3 \cos (c+d x) \sqrt {a+i a \tan (c+d x)}}{64 d}-\frac {11 i a^3 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{120 d}-\frac {11 i a^2 \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{140 d}-\frac {11 i a \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{126 d}-\frac {i \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2}}{9 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.33, antiderivative size = 268, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 5, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {3578, 3583,
3571, 3570, 212} \begin {gather*} \frac {11 i a^{7/2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{64 \sqrt {2} d}+\frac {11 i a^4 \cos (c+d x)}{96 d \sqrt {a+i a \tan (c+d x)}}-\frac {11 i a^3 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{120 d}-\frac {11 i a^3 \cos (c+d x) \sqrt {a+i a \tan (c+d x)}}{64 d}-\frac {11 i a^2 \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{140 d}-\frac {i \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2}}{9 d}-\frac {11 i a \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{126 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 3570
Rule 3571
Rule 3578
Rule 3583
Rubi steps
\begin {align*} \int \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2} \, dx &=-\frac {i \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2}}{9 d}+\frac {1}{18} (11 a) \int \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2} \, dx\\ &=-\frac {11 i a \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{126 d}-\frac {i \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2}}{9 d}+\frac {1}{28} \left (11 a^2\right ) \int \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2} \, dx\\ &=-\frac {11 i a^2 \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{140 d}-\frac {11 i a \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{126 d}-\frac {i \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2}}{9 d}+\frac {1}{40} \left (11 a^3\right ) \int \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \, dx\\ &=-\frac {11 i a^3 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{120 d}-\frac {11 i a^2 \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{140 d}-\frac {11 i a \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{126 d}-\frac {i \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2}}{9 d}+\frac {1}{48} \left (11 a^4\right ) \int \frac {\cos (c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx\\ &=\frac {11 i a^4 \cos (c+d x)}{96 d \sqrt {a+i a \tan (c+d x)}}-\frac {11 i a^3 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{120 d}-\frac {11 i a^2 \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{140 d}-\frac {11 i a \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{126 d}-\frac {i \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2}}{9 d}+\frac {1}{64} \left (11 a^3\right ) \int \cos (c+d x) \sqrt {a+i a \tan (c+d x)} \, dx\\ &=\frac {11 i a^4 \cos (c+d x)}{96 d \sqrt {a+i a \tan (c+d x)}}-\frac {11 i a^3 \cos (c+d x) \sqrt {a+i a \tan (c+d x)}}{64 d}-\frac {11 i a^3 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{120 d}-\frac {11 i a^2 \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{140 d}-\frac {11 i a \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{126 d}-\frac {i \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2}}{9 d}+\frac {1}{128} \left (11 a^4\right ) \int \frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx\\ &=\frac {11 i a^4 \cos (c+d x)}{96 d \sqrt {a+i a \tan (c+d x)}}-\frac {11 i a^3 \cos (c+d x) \sqrt {a+i a \tan (c+d x)}}{64 d}-\frac {11 i a^3 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{120 d}-\frac {11 i a^2 \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{140 d}-\frac {11 i a \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{126 d}-\frac {i \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2}}{9 d}+\frac {\left (11 i a^4\right ) \text {Subst}\left (\int \frac {1}{2-a x^2} \, dx,x,\frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}}\right )}{64 d}\\ &=\frac {11 i a^{7/2} \tanh ^{-1}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{64 \sqrt {2} d}+\frac {11 i a^4 \cos (c+d x)}{96 d \sqrt {a+i a \tan (c+d x)}}-\frac {11 i a^3 \cos (c+d x) \sqrt {a+i a \tan (c+d x)}}{64 d}-\frac {11 i a^3 \cos ^3(c+d x) \sqrt {a+i a \tan (c+d x)}}{120 d}-\frac {11 i a^2 \cos ^5(c+d x) (a+i a \tan (c+d x))^{3/2}}{140 d}-\frac {11 i a \cos ^7(c+d x) (a+i a \tan (c+d x))^{5/2}}{126 d}-\frac {i \cos ^9(c+d x) (a+i a \tan (c+d x))^{7/2}}{9 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.50, size = 188, normalized size = 0.70 \begin {gather*} -\frac {i a^3 e^{-3 i (c+d x)} \sqrt {\frac {a e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}} \left (-315+4303 e^{2 i (c+d x)}+7034 e^{4 i (c+d x)}+3754 e^{6 i (c+d x)}+1798 e^{8 i (c+d x)}+530 e^{10 i (c+d x)}+70 e^{12 i (c+d x)}-3465 e^{2 i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \tanh ^{-1}\left (\sqrt {1+e^{2 i (c+d x)}}\right )\right )}{20160 \sqrt {2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 1603 vs. \(2 (219 ) = 438\).
time = 2.09, size = 1604, normalized size = 5.99
method | result | size |
default | \(\text {Expression too large to display}\) | \(1604\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.57, size = 314, normalized size = 1.17 \begin {gather*} -\frac {{\left (3465 \, \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{7}}{d^{2}}} d e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (-\frac {11 \, {\left (-i \, a^{4} + \sqrt {2} \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{7}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{32 \, d}\right ) - 3465 \, \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{7}}{d^{2}}} d e^{\left (2 i \, d x + 2 i \, c\right )} \log \left (-\frac {11 \, {\left (-i \, a^{4} - \sqrt {2} \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{7}}{d^{2}}} {\left (d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-i \, d x - i \, c\right )}}{32 \, d}\right ) - \sqrt {2} {\left (-70 i \, a^{3} e^{\left (12 i \, d x + 12 i \, c\right )} - 530 i \, a^{3} e^{\left (10 i \, d x + 10 i \, c\right )} - 1798 i \, a^{3} e^{\left (8 i \, d x + 8 i \, c\right )} - 3754 i \, a^{3} e^{\left (6 i \, d x + 6 i \, c\right )} - 7034 i \, a^{3} e^{\left (4 i \, d x + 4 i \, c\right )} - 4303 i \, a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} + 315 i \, a^{3}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}}{40320 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\cos \left (c+d\,x\right )}^9\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{7/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________